<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>常见的网页布局</title>
    <style>
        .top {
            width: 1850px;
            height: 40px;
            background-color: black;
        }

        .banner {
            background-color: pink;
            height: 100px;
            width: 1200px;
            margin: 20px auto 20px auto;
        }

        .box {
            width: 1200px;
            /* 可以不给宽 默认是浏览器宽度 */
            height: 500px;
            margin: 0 auto 20px auto;
            background-color: red;

        }

        .box1 {

            background-color: green;
            height: 100px;
            width: 291px;
            margin-right: 12px;
            float: left;

        }

        .box2 {

            background-color: green;
            height: 350px;
            width: 291px;
            margin-top: 20px;
            margin-right: 12px;
            float: left;

        }

        .footer {
            width: 1850px;
            height: 80px;
            background-color: rgba(23, 33, 44, .3);
            margin-top: 20px;
        }

        * {
            margin: 0;
            padding: 0;
        }
    </style>
</head>

<body>

    <div class="top"></div>
    <div class="banner"></div>
    <div class="box">
        <div class="box1">
            <ul>
                <li>a</li>
                <li>a</li>
                <li>1</li>
                <li>23</li>
                <li>3</li>
            </ul>
        </div>
        <div class="box1"></div>
        <div class="box1"></div>
        <div class="box1" style="margin-right:0px; "></div>
        <div class="box2"></div>
        <div class="box2"></div>
        <div class="box2"></div>
        <div class="box2" style="margin-right:0px;"></div>
    </div>
    <div class="footer"></div>




</body>


</html>